package com.shy.task.quartz.job.impl;

import com.shy.base.component.ApplicationContextProvider;
import com.shy.task.entity.TaskEntity;
import com.shy.task.quartz.job.AbstractCustomJob;
import com.shy.task.service.TaskEntityService;

import lombok.extern.slf4j.Slf4j;

/**
 * 测试任务
 *
 * @author shanhanyu
 * @date 2018/9/10 - 17:30
 */
@Slf4j
public class DemoJob001 extends AbstractCustomJob {

	@Override
	public void doExecute(String workDate) {
		log.info("测试demo001开始执行...");
		ApplicationContextProvider.getBean(TaskEntityService.class).findByProperty("status", 1).forEach(System.err::println);
		log.info("测试demo001结束执行...");
	}

	@Override
	public void doExecute(String workDate, TaskEntity taskcfg) {
		// TODO Auto-generated method stub
		
	}
}
